package com.tanhua.server.controller;

import com.tanhua.dubbo.server.api.HuanXinApi;
import com.tanhua.server.service.HuanXinService;
import com.tanhua.server.vo.HuanXinUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author feihao
 * @version 1.0
 * @date 2021/7/5 19:58
 */

@RestController
@RequestMapping("huanxin")
public class HuanXinCotroller {

    @Autowired
    private HuanXinService huanXinService;

    /**
     *
     * 查询环信用户返回前端，让前端SDK连接至环信平台，
     * @return
     */
    @GetMapping("user")
    public HuanXinUserVo getHuanXinUser(){

        return huanXinService.getHuanXinUser();


    }
}
